package com.wzh.glsc.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.common.utils.PageUtils;
import com.wzh.glsc.member.entity.MemberEntity;
import com.wzh.glsc.member.to.UserLoginTo;
import com.wzh.glsc.member.to.UserRegisterTo;
import com.wzh.glsc.member.to.WeiBoAccessToken;

import java.util.Map;

/**
 * 会员
 *
 * @author lcm
 * @email 1291529969@gmail.com
 * @date 2022-03-18 19:26:43
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(UserRegisterTo userRegisterTo) throws Exception;

    void phoneRepeated(String phone);

    void nameRepeated(String name);

    MemberEntity login(UserLoginTo userLoginTo);

    MemberEntity weiboLogin(WeiBoAccessToken weiBoAccessToken);
}

